﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Runtime.Remoting.Messaging;

using DAL;
using Model;

namespace BLL
{
	/// <summary>
    /// 已推送的消息 業務類
    /// </summary>
    public class PushmessageBLL : BaseBLL<Model.Pushmessage>
    {
        /// <summary>
        /// 子类数据访问类对象
        /// </summary>
        PushmessageDAL childDAL = null;
        #region 重写父类的抽象方法
        /// <summary>
        /// 重写父类的抽象方法
        /// </summary>
        protected override void SetDAL()
        {
            childDAL = new DAL.PushmessageDAL();
            dal = new DAL.PushmessageDAL();//为父类变量赋值
        }
        #endregion

		#region 當前類業務類對象
		/// <summary>
        /// 當前類業務類對象
        /// </summary>
        public static PushmessageBLL CurrBll
        {
            get
            {
                PushmessageBLL model = CallContext.GetData(typeof(PushmessageBLL).Name) as PushmessageBLL;
                if (model != null)
                {
                    return model;
                }
                else
                {
                    model = new PushmessageBLL();
                    CallContext.SetData(typeof(PushmessageBLL).Name, model);
                    return model;
                }
            }
        }
        #endregion
    }
}
